
import tensorflow as tf

my_list = [ 0.3,0.5]

graph =  tf.Graph()
with graph.as_default():
    x = tf.placeholder(tf.float32, shape=(1,None))
    w1 = tf.Variable(tf.random_normal([1, 2], stddev=1, seed=1))
    a = x + w1


with tf.Session(graph=graph) as sess:
    sess.run(tf.global_variables_initializer())
    print(sess.run(a, feed_dict={x: [my_list]}))
sess.close()

